package com.neutech.service;

import com.mybatisflex.core.service.IService;
import com.neutech.entity.Student;
import com.opencsv.exceptions.CsvValidationException;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * 学生表 服务层。
 *
 * @author Administrator
 * @since 2025-02-08
 */
public interface StudentService extends IService<Student> {

    Student getByIdCard(String idcard);
    List<Student> list(Integer gradeId);
    boolean upload(MultipartFile file, Integer gradeId) throws CsvValidationException, IOException;
    boolean add(Student student);
    boolean del(Integer id, Boolean active);
    boolean check(Integer id, String field,  String value);
    long  count(Integer gradeId);
}
